Display

General Action Statement

Syntax samples

DISPLAY <string expression>

DISPLAY "Var1 =" $ Var1 $ "and Attr1 =" $ Attr1

DISPLAY "Now beginning 100th process"

DISPLAY Number_in_Queue

Description

Pauses the simulation and displays a message. The simulation will resume when the user selects OK. The concatenation operator ($) should be used to combine a numeric value into the string (as in the first syntax example above). Using the ENT(), LOC(), and RES() functions will display the name of the entity, location, or resource.

Valid In

Any logic.

Components

<string expression>

The message to be displayed. To display a numeric value, use the concatenation operator ($) as in the first syntax example.

Example

This simple example displays the value of both Var1 and of Attr1 if Attr2 is 1. This logic will display the dialog box below if Attr2 is 1. If Attr2 is not 1, an error message will appear.

Operation (min)

IF Attr2=1 THEN

DISPLAY "Var1 =" $ Var1 $ "\nand Attr1 =" $ Attr1

ELSE

DISPLAY "Error"

 

 

Please note

The "\n" character starts new lines.

See Also

PROMPT, PAUSE, CHAR(), and FORMAT().